package cn.mxz.service.impl;

import cn.mxz.mapper.ProductSkuMapper;
import cn.mxz.pojo.ProductSku;
import cn.mxz.service.ProductSkuService;
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class ProductSkuServiceImpl implements ProductSkuService {
    @Autowired
    private ProductSkuMapper productSkuMapper;
    @Override
    public List<ProductSku> getProductSku(String pid) {
        QueryWrapper<ProductSku> queryWrapper = new QueryWrapper<>();
        queryWrapper.eq("product_id",pid);
        return productSkuMapper.selectList(queryWrapper);
    }
}
